﻿#include "CmdPolarCoordinateGraphSidebarCopySelectedGraph.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphSidebarCopySelectedGraph::CmdPolarCoordinateGraphSidebarCopySelectedGraph()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphSidebarCopySelectedGraph::~CmdPolarCoordinateGraphSidebarCopySelectedGraph()
    {
    }

    bool CmdPolarCoordinateGraphSidebarCopySelectedGraph::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphSidebarCopySelectedGraph(m_mainWindowId);
        return true;
    }

    void CmdPolarCoordinateGraphSidebarCopySelectedGraph::undo()
    {
    }

    void CmdPolarCoordinateGraphSidebarCopySelectedGraph::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphSidebarCopySelectedGraph::setPolarCoordinateGraphSidebarCopySelectedGraph(int mainWindowId)
    {
        m_mainWindowId = mainWindowId;
    }

} // namespace PostCommand
